Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove inappropriate status tripping up turbo #17339

Merged

Conversation

ulferts
Copy link
Contributor

@ulferts ulferts commented Dec 3, 2024

Ticket

https://community.openproject.org/wp/59369

What are you trying to accomplish?

Fix the issue described in the linked bug.

What approach did you choose and why?

Returning unprocessable_entity on a GET request, with no parameters provided is not appropriate and trips up turbo leading to a reinitialization of the angular app and ckeditor.
It was added when enabling turbo drive (#16486) where when rendering a response to a POST form request a non ok status needs to be returned. I believe here, it was added erroneously.

Merge checklist

  • Tested major browsers (Chrome, Firefox, Edge, ...)

@ulferts ulferts changed the title remove inappropriate status tripping up turbo Remove inappropriate status tripping up turbo Dec 3, 2024
@ulferts ulferts force-pushed the bug/59369-work-package-settings-page-is-broken branch 2 times, most recently from 81fa18b to 613cbaf Compare December 3, 2024 16:07
@ulferts ulferts force-pushed the bug/59369-work-package-settings-page-is-broken branch from 613cbaf to 7cd9daf Compare December 3, 2024 16:26
@ulferts ulferts marked this pull request as ready for review December 3, 2024 16:40
Copy link
Contributor

@HDinger HDinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected. Nice catch 👍

@HDinger HDinger merged commit 478d308 into release/15.1 Dec 4, 2024
13 checks passed
@HDinger HDinger deleted the bug/59369-work-package-settings-page-is-broken branch December 4, 2024 12:08
@HDinger HDinger added this to the 15.1.x milestone Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants